﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    public interface ICustomerRepository
    {
        /// <summary>
        /// Get All Customers
        /// </summary>
        /// <returns></returns>
        IQueryable<Customer> FindAllCustomer();

        /// <summary>
        /// Get Customer By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<Customer> FindCustomerByName(string strQuery);

        /// <summary>
        /// Get Customer By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Customer GetCustomerById(int id);

        /// <summary>
        /// Add Notification in the Database
        /// </summary>
        /// <param name="customer"></param>
        void Add(Customer customer);

        /// <summary>
        /// Delete Customer from the Database
        /// </summary>
        /// <param name="customer"></param>
        void Delete(Customer customer);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}
